<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>走马灯</title>

    <style>
        .carousel {
            position: relative;
            border: 1px solid black;
            display: inline-block;
        }

        img {
            height: 400px;
            display: none;
        }
        
        img.active {
            display: block;
        }

        .slider {
            /* height: 18px; */
            /* width: 180px; */
            /* background-color: #666; */
            position: absolute;
            left: 50px;
            bottom: 40px;
        }

        .indicator {
            /* height: 18px; */
            /* width: 18px; */
            display: block;
            float: left;
            /* background-color: yellow; */
            /* border: 1px solid black; */
            box-sizing: border-box;
            margin-right: 4px;
        }

        .indicator::before {
            content: "";
            height: 11px;
            width: 11px;
            box-sizing: border-box;
            border: 3px solid #666;
            opacity: .3;
            display: block;
            float: left;
            border-radius: 50%;
        }

        .indicator.active::after {
            content: "";
            height: 11px;
            width: 11px;
            background-color: white;
            display: block;
            border-radius: 50%;
        }
    </style>
</head>
<body>
    <div class="carousel">
        <div class="img">
            <img class="active" src="https://imgcps.jd.com/img-cubic/creative_server_cia_jdcloud/v2/2000366/59973545811/FocusFullshop/CkRqZnMvdDEvMTg2NjAzLzM5LzE0NDkzLzQxNzk0Ny82MGY4ZWM1ZUU2OTM5MTJhYy9hMzU4NGU1OTVhYzEyZTJiLnBuZxIJMi10eV8wXzUzMAI47ot6QhMKD-WNjuS4uueslOiusOacrBAAQhEKDeenkuadgOS7tzYzODgQAUIQCgznq4vljbPmiqLotK0QAkIHCgPmiqIQB1jT3s613wE/cr/s/q.jpg" />
            <img src="https://img14.360buyimg.com/babel/s1180x940_jfs/t1/170210/26/26239/131007/616cd997Ecbe5ae6f/b92b3b715211325f.jpg.webp" alt="">
        </div>
        <div class="slider">
            <i class="indicator active"></i>
            <i class="indicator"></i>
            <i class="indicator"></i>
            <i class="indicator"></i>
            <i class="indicator"></i>
            <i class="indicator"></i>
            <i class="indicator"></i>
        </div>
    </div>
</body>
</html>